#include "decodethread.h"

void DecodeThread::run()
{
  static int nsec0=-999;
  bool qe = quitExecution;

  while (!qe) {
    quitExecutionMutex.lock();
    qe = quitExecution;
    quitExecutionMutex.unlock();
    if (qe) break;
    qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
    int nsec = ms/1000;             // Time according to this computer
    nsec0=nsec;
    msleep(1000);
  }
}

DecodeThread::~DecodeThread()
{
}

void DecodeThread::quit()
{
  quitExecutionMutex.lock();
  quitExecution = true;
  quitExecutionMutex.unlock();
}
